Skip to main content

Colors palette

Colors palette for every color used in the library, excluding the chart itself. Colors on the chart are set through the ColorsRepository.

Each color in the palette is stored as a Color object. Colors are represented in the ARGB (Alpha, Red, Green, Blue) format, where Alpha represents transparency, and Red, Green, Blue represent the corresponding color components.

Within the library, the palette is passed in the DxChartsColors object, which needs to be passed as a parameter to DxChartsTheme. Default colors can be obtained by calling the darkPalette() method.

How to change color palette you can find here

Colors table:

Value nameHEX (Dark)Alpha (%) (Dark)HEX (Light)Alpha (%) (Light)
mainChartBg#FF000000100%#FFFFFFFF100%
mainChartValueText#FF808080100%#FF4D4D4D100%
mainChartValueTextBorder#6600000040%#66FFFFFF40%
mainChartGridLine#FF282828100%#FFE5E5E5100%
buttonPrimaryDefault#FF141414100%#FFF5F5F5100%
mainChartCandleBullBodyBg#FF4d9953100%#FF67AD6D100%
mainChartCandleBearBodyBg#FFD92C40100%#FFEB4C4C100%
mainChartIndicatorNameBg#FFFFFFFF100%#FF404040100%
mainChartCrosshairLineBg#FFFFAA00100%#FFFF5B24100%
mainChartSymbolName#FFFFFFFF100%#FF404040100%
iconPrimaryDefaultBg#FFD4D4D3100%#FF1F1F1F100%
inputDefaultText#FFFFFFFF100%#FF000000100%
inputTextActive#FFFFAA00100%#FFFFFFFF100%
dropdownListItemSelectedText#FFFFAA00100%#FFFF5B24100%
dropdownListItemDefaultText#FFDFDEDF100%#FF4D4D4D100%
dropdownDescriptionText#FF70706F100%#FFD1D1D1100%
databoxTextDefault#FFE5E4E4100%#FF4C4242100%
dropdownDefaultBg#FF141414100%#FFFFFFFF100%
iconActiveBg#FFFFAA00100%#FFFF5B24100%
iconActiveDisabledDefaultBg#FF4D3300100%#66FF5B2440%
iconPressedBg#FFFFAA00100%#FFFFFFFF100%
iconSecondaryDefaultBg#FF6E6C6B100%#FFD1D1D1100%
iconDisabledDefaultBg#FF6E6C6B100%#FFD1D1D1100%
buttonPrimaryPressed#FF433211100%#FFFF5B24100%
separator#FF282828100%#FFE5E5E5100%
listBackground#8000000050%#80FFFFFF50%
searchRowBg#FF202020100%#FF202020100%
searchRowTextBg#1CFFFFFF11%#1CFFFFFF11%
colorButtonBorderStrokeColor#1AFFFFFF10%#1AFFFFFF10%
colorPickerPressed#FFD4D4D3100%#FFD4D4D3100%
bidButtonBg#3345BB4F20%#FF6FB974100%
bidButtonTextColor#FF42b34b100%#FFFFFFFF100%
askButtonBg#3DD23A2B24%#FFF66857100%
askButtonTextColor#FFD23A2B100%#FFFFFFFF100%
buttonDangerDefaultBg#FFD92C40100%#FFD92C40100%
buttonPrimaryDefaultText#FF292929100%#FFFFFFFF100%
inputBorderDefaultBg#FF282828100%#FFE0E0E0100%
eventsEarningsBg#FFD92C40100%#FFD92C40100%
eventsDividendsBg#FFC05BFF100%#FFC05BFF100%
eventsConferenceCallsBg#FF65DBB2100%#FF65DBB2100%
eventsSplitsBg#FFF4BB3F100%#FFF4BB3F100%
notificationHeaderText#FFFFAA00100%#FFFF5B24100%
notificationBodyText#FF666666100%#FF4D4D4D100%
searchRowText#FFE5E5E5100%#FFE5E5E5100%
searchRowContinuationText#FF6E6C6B100%#FF6E6C6B100%
buttonBorderBg#FF282828100%#FFE5E5E5100%
tabDefaultBg#FF141414100%#FFEBEBED100%
tabActiveBg#FFFFAA00100%#FFFFFFFF100%
tabTextDefault#FFDFDEDF100%#FF292929100%
tabTextActive#FF292929100%#FF292929100%
suggestHighlightBg#33FFAA0020%#FFFF5B24100%
suggestHighlightText#FFFFAA00100%#FFFFFFFF100%
buyOrderBg#FF0E2510100%#800E251050%
sellOrderBg#FF320E0A100%#80320E0A50%
protectionText#FFFFAA00100%#FFFFAA00100%
protectionBg#FF332200100%#8033220050%
protectionSetupText#FFFFFFFF100%#FF404040100%
plusOrderButtonBg#FF332200100%#FFFF5B24100%
plusOrderButton#FFFFAA00100%#FFFFFFFF100%

DxChartsColors file and default colors values - https://stash.in.devexperts.com/projects/DXCHARTS/repos/dxcharts-android/browse/dxcharts_lib/src/main/java/com/devexperts/dxcharts/lib/ui/theme/Colors.kt.